<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        //对象拓展运算符（深拷贝）
        let person = {name: 'zyw',age: 22}
        /*let p = person
        p.name = 'lisi'
        console.log(person)*/

        let p = {...person}
        p.name = 'lisi'
        console.log(person)
        console.log(p)
    </script>
</head>
<body>

</body>
</html>